<template>
  <h1>{{ msg }}</h1>
  <button @click="store.setMessage(8888899)">count is: {{ count }}</button>
  <h1> message：{{store.state.message}} </h1>

</template>

<script>
export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  inject: ['store'],
  data() {
    return {
      count: 0
    }
  }
}
</script>
